---
id: auth-signout
title: "auth.signOut()"
slug: auth-signout
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

Signs out the current user, if there is a logged in user.

<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
const { error } = supabase.auth.signOut()
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>

















## Examples

### Sign out



<Tabs
  defaultValue="js"
  groupId="libraries"
  values={[{ label: 'JavaScript', value: 'js' },{ label: 'Python', value: 'py' }]}>

<TabItem value="js">

```js
const { error } = supabase.auth.signOut()
```


</TabItem>
<TabItem value="py">

```py
# Not yet implemented
```


</TabItem>

</Tabs>